package com.xbongbong.paas.service;

import com.xbongbong.paas.pojo.vo.AfterSaveVO;
import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.pro.listbatch.pojo.dto.OnlineDTO;
import com.xbongbong.pro.marketing.pojo.dto.MarketingManagementDataAddDTO;
import com.xbongbong.pro.marketing.pojo.dto.MarketingManagementDataUpdateDTO;
import com.xbongbong.pro.marketing.pojo.dto.MarketingManagementDeleteBatchDTO;
import com.xbongbong.pro.marketing.pojo.dto.MarketingValidateDataDTO;
import com.xbongbong.pro.marketing.pojo.vo.MarketingManagementDeleteBatchVO;
import com.xbongbong.saas.domain.entity.CouponEntity;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author jyh
 * @version v1.0
 * @date 2020/12/24 13:21
 * @since v1.0
 */
@Service
public interface CouponTempleteService{


    void beforeSave(MarketingValidateDataDTO marketingValidateDataDTO) throws XbbException;

    AfterSaveVO insert(MarketingManagementDataAddDTO marketingManagementDTO) throws XbbException;

    AfterSaveVO update(MarketingManagementDataUpdateDTO marketingManagementDTO) throws XbbException;

    MarketingManagementDeleteBatchVO deleteBatch(MarketingManagementDeleteBatchDTO marketingManagementDeleteBatchDTO) throws XbbException;

    void online(OnlineDTO onlineDTO) throws XbbException;

    AfterSaveVO add(MarketingManagementDataAddDTO marketingManagementDTO) throws XbbException;

    void updateUseNum(List<CouponEntity> couponEntityList, String corpid) throws XbbException;

}
